package com.ruoyi.show.service.Impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.show.mapper.PublishYearTrendMapper;
import com.ruoyi.show.domain.PublishYearTrend;
import com.ruoyi.show.service.IPublishYearTrendService;

/**
 * 出版数量趋势Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-09-08
 */
@Service
public class PublishYearTrendServiceImpl implements IPublishYearTrendService 
{
    @Autowired
    private PublishYearTrendMapper publishYearTrendMapper;

    /**
     * 查询出版数量趋势
     * 
     * @param id 出版数量趋势主键
     * @return 出版数量趋势
     */
    @Override
    public PublishYearTrend selectPublishYearTrendById(Long id)
    {
        return publishYearTrendMapper.selectPublishYearTrendById(id);
    }

    /**
     * 查询出版数量趋势列表
     * 
     * @param publishYearTrend 出版数量趋势
     * @return 出版数量趋势
     */
    @Override
    public List<PublishYearTrend> selectPublishYearTrendList(PublishYearTrend publishYearTrend)
    {
        return publishYearTrendMapper.selectPublishYearTrendList(publishYearTrend);
    }

    /**
     * 新增出版数量趋势
     * 
     * @param publishYearTrend 出版数量趋势
     * @return 结果
     */
    @Override
    public int insertPublishYearTrend(PublishYearTrend publishYearTrend)
    {
        return publishYearTrendMapper.insertPublishYearTrend(publishYearTrend);
    }

    /**
     * 修改出版数量趋势
     * 
     * @param publishYearTrend 出版数量趋势
     * @return 结果
     */
    @Override
    public int updatePublishYearTrend(PublishYearTrend publishYearTrend)
    {
        return publishYearTrendMapper.updatePublishYearTrend(publishYearTrend);
    }

    /**
     * 批量删除出版数量趋势
     * 
     * @param ids 需要删除的出版数量趋势主键
     * @return 结果
     */
    @Override
    public int deletePublishYearTrendByIds(Long[] ids)
    {
        return publishYearTrendMapper.deletePublishYearTrendByIds(ids);
    }

    /**
     * 删除出版数量趋势信息
     * 
     * @param id 出版数量趋势主键
     * @return 结果
     */
    @Override
    public int deletePublishYearTrendById(Long id)
    {
        return publishYearTrendMapper.deletePublishYearTrendById(id);
    }
}
